package com.jerkin.list;

import java.util.ArrayList;
import java.util.List;

/**
 * @version V1.0
 * @ClassName: JerkinList
 * @Description:
 * @author: huhongzhi
 * @date: 2021/1/14 10:15
 */
public class JerkinList extends ArrayList{
    @Override
    public void ensureCapacity(int minCapacity) {
        System.out.println("进行扩容");
       super.ensureCapacity(minCapacity);
    }
    public static void main(String[] args) {

        List<Integer> list = new ArrayList<>();
        for(int i=0;i<100;i++){
            System.out.println("执行次数"+i);
            list.add(i);
        }
    }
}
